﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace kongjian17
{
    [Designer(typeof(TongJi_EMS._TJ_Basic.TJ_BasicControlDesigner))]
    public partial class dianyegong : TongJi_EMS._TJ_Basic.TJ_BasicControl
    {
        public dianyegong()
        {
            InitializeComponent();
        }
        private void sanxiangdianya_Paint(object sender, PaintEventArgs e)
        {

            Pen a = new Pen(CtrColor, 1);
            e.Graphics.DrawEllipse(a, x / 40f, x / 2f, x / 2f, x / 2f);
            e.Graphics.DrawEllipse(a, x / 40f, y*2f-x / 2f, x / 2f, x / 2f);
            e.Graphics.DrawEllipse(a, x*31 / 40f, x / 2f, x / 2f, x / 2f);
            e.Graphics.DrawEllipse(a, x * 31 / 40f, y*2f-x / 2f, x / 2f, x / 2f);
            e.Graphics.DrawEllipse(a, x * 59 / 40f, x / 2f, x / 2f, x / 2f);
            e.Graphics.DrawEllipse(a, x * 59 / 40f, y * 2f - x / 2f, x / 2f, x / 2f);
            e.Graphics.DrawLine(a, x * 1.1f / 4f, x / 2f, x * 1.1f / 4f, x / 4f);
            e.Graphics.DrawLine(a, x * 4.1f / 4f, x / 2f, x * 4.1f / 4f, 0);
            e.Graphics.DrawLine(a, x * 7f / 4f, x / 2f, x * 7f / 4f, x / 4f);
            e.Graphics.DrawLine(a, x * 1.1f / 4f, x / 4f, x * 7f / 4f, x / 4f);

        }

        private void sanxiangdianya_Resize(object sender, EventArgs e)
        {
            this.x = this.Width / 2;
            this.y = this.Height / 2;
            //this.Refresh();

        }

        private void sanxiangdianya_Load(object sender, EventArgs e)
        {
            sanxiangdianya_Resize(sender, e);
        }




    }
}